/*
 * Copyright (c) 2015. For Intelligent Group.
 */

package com.intelligent.ispc.core.repository.jpa;

import com.intelligent.ispc.core.entity.Project;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * Created by Peter.Li on 2015/10/9.
 */
public interface ProjectDao extends PagingAndSortingRepository<Project, Long>, JpaSpecificationExecutor<Project> {

    Project findByCode(String code);

    Project findByName(String name);

    Project findById(Long id);

    Project findByNameOrCode(String name, String code);
}
